package com.ruoyi.fun.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.fun.domain.EcPayment;

/**
 * 支付记录Mapper接口
 * 
 * @author ruoyi
 * @date 2025-08-06
 */
public interface EcPaymentMapper 
{
    /**
     * 查询支付记录
     * 
     * @param paymentId 支付记录主键
     * @return 支付记录
     */
    public EcPayment selectEcPaymentByPaymentId(Long paymentId);

    /**
     * 查询支付记录列表
     * 
     * @param ecPayment 支付记录
     * @return 支付记录集合
     */
    public List<EcPayment> selectEcPaymentList(EcPayment ecPayment);

    /**
     * 新增支付记录
     * 
     * @param ecPayment 支付记录
     * @return 结果
     */
    public int insertEcPayment(EcPayment ecPayment);

    /**
     * 修改支付记录
     * 
     * @param ecPayment 支付记录
     * @return 结果
     */
    public int updateEcPayment(EcPayment ecPayment);

    /**
     * 删除支付记录
     * 
     * @param paymentId 支付记录主键
     * @return 结果
     */
    public int deleteEcPaymentByPaymentId(Long paymentId);

    /**
     * 批量删除支付记录
     * 
     * @param paymentIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteEcPaymentByPaymentIds(Long[] paymentIds);

    /**
     * 根据PaymentID和组织ID查询Payment
     * 
     * @param paymentId Payment主键
     * @param orgId 组织ID
     * @return Payment
     */
    public EcPayment selectEcPaymentByPaymentIdAndOrgId(@Param("paymentId") Long paymentId, @Param("orgId") Long orgId);

    /**
     * 根据组织ID查询Payment列表
     * 
     * @param ecpayment Payment
     * @param orgId 组织ID
     * @return Payment集合
     */
    public List<EcPayment> selectEcPaymentListByOrgId(@Param("ecpayment") EcPayment ecpayment, @Param("orgId") Long orgId);
}
